<?php

declare(strict_types=1);

namespace App\Box\Model;

use Mine\MineModel;

/**
 * @property int $id ID
 * @property string $name 类型名称
 * @property string $icon 图标
 * @property int $sort 展示排序
 * @property int $status 是否展示(1展示，2:隐藏)
 * @property int $created_by 创建者
 * @property int $create_time 创建时间
 * @property int $update_time 更新时间
 */
class BoxCategory extends MineModel
{
    protected ?string $dateFormat = 'U';
    const CREATED_AT = 'create_time';
    const UPDATED_AT = 'update_time';
    /**
     * The table associated with the model.
     */
    protected ?string $table = 'box_category';

    /**
     * The attributes that are mass assignable.
     */
    protected array $fillable = ['id', 'name', 'icon', 'sort', 'status', 'created_by', 'create_time', 'update_time'];

    /**
     * The attributes that should be cast to native types.
     */
    protected array $casts = ['id' => 'integer', 'sort' => 'integer', 'status' => 'integer', 'created_by' => 'integer', 'create_time' => 'integer', 'update_time' => 'integer'];
}
